package br.com.j7.jdesk.persistence.repository;

import java.util.List;

import br.com.j7.jdesk.library.exception.RepositoryException;
import br.com.j7.jdesk.persistence.entity.Enterprises;
import br.com.j7.jdesk.persistence.entity.ServicesSituations;

/**
 * Interface {@link Repository} da entidade {@link ServicesSituations}
 * 
 * @author Edivando Alves
 *
 */
public interface ServiceSituationRepository extends Repository<ServicesSituations>{

	/**
	 * OBtem uma entidade {@link ServicesSituations} por cdServiceSituation e por {@link Enterprises}
	 * @param cdServiceSituation String
	 * @param enterprise {@link Enterprises}
	 * @return {@link ServicesSituations}
	 * @throws RepositoryException
	 */
	public ServicesSituations findByServiceSituationAndEnterprise(String cdServiceSituation, Enterprises enterprise) throws RepositoryException;
	
	/**
	 * Obtem uma {@link List} de {@link ServicesSituations} por {@link Enterprises}
	 * 
	 * @param enterprise {@link Enterprises}
	 * @return {@link ServicesSituations}
	 * @throws RepositoryException
	 */
	public List<ServicesSituations> listByEnterprise(Enterprises enterprise) throws RepositoryException;
	

}
